package week_10.实验3_查找和排序.test;

import 第八周.practice.Sorting;

public class SortingTest1
{
    public static void main(String[] args) {
        Comparable array1[] = {20, 17, 23, 28};
        System.out.println("原数组为：");
        for(int a = 0;a<array1.length;a++) {
            System.out.print(array1[a]+" ");
        }
        System.out.println();
        System.out.println("排序后的数组为：");
        Sorting.selectionSort(array1);
        for(int a = 0;a<array1.length;a++) {
            System.out.print(array1[a]+" ");
        }
    }

}
